﻿#region Librerias

using System;
using System.Collections.Generic;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using ESF.General.Entity;
using ESF.SFT.DataAccess;
using ESF.SFT.Entities;
using ESF.WCF;

#endregion


namespace ESF.SFT.FileReceiveLogger
{
	[ExceptionBehaviorAttribute]
	public class FileReceiveLogger : IFileReceiveLogger
	{
		public void LogFileReceive(Entities.FileReceiveLog pFileReceiveLog)
		{
			AdoFileReceiveLog.Register (pFileReceiveLog);
		}


		public BrowseResults<FileReceiveLog> GetFileUploadHistory(FileReceiveLog pSample, PaggingInfo pPagInfo)
		{
			return AdoFileReceiveLog.GetList(pSample, pPagInfo);
		}


		public Couple<string, string> [] GetFileUploadResumen(string pSessionTicket, string pUserName)
		{
			return AdoFileReceiveLog.GetFileUploadResumen(pUserName);
		}
	}
}